import Vue from 'vue'
import VueRouter from 'vue-router'
// import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/test2',
    name: 'Test2',
    component: () => import( '../components/testing/Test2.vue')
  },
  {
    path: '/smicon',
    name: 'Smicon',
    component: () => import( '../components/my/Smicon.vue')
  },
  {
    path: '/testing',
    name: 'Testing',
    component: () => import( '../components/testing/Testing.vue')
  },
  {
    path: '/tabbar',
    name: 'Tabbar',
    component: () => import( '../views/Tabbar.vue')
  },
  {
    path: '/',
    name: 'Home',
    // component: Home
    component: () => import( '../views/Home.vue')

  },
  {
    path: '/myheader',
    name: 'MyHeader',
    component: () => import( '../views/MyHeader.vue')
  },
  {
    path: '/nickname',
    name: 'NickName',
    component: () => import('../views/NickName.vue')
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import( '../views/Login.vue')
  },
  {
    path: '/city',
    name: 'City',
    component: () => import('../views/City.vue')
  },
  {
    path: '/docter',
    name: 'Docter',
    component: () => import('../views/Docter.vue')
  },
  {
    path: '/housec',
    name: 'Housec',
    component: () => import( '../views/Housec.vue')
  },
  {
    path: '/life',
    name: 'Life',
    component: () => import('../views/Life.vue')
  },
  {
    path: '/store',
    name: 'Store',
    component: () => import( '../views/Store.vue')
  },
  {
    path: '/email',
    name: 'Email',
    component: () => import( '../views/Email.vue')
  },
  {
    path: '/indi',
    name: 'Indi',
    component: () => import('../views/Indi.vue')
  },
  {
    path: '/my',
    name: 'My',
    component: () => import( '../components/My.vue')
  },
  {
    path: '/xiaoxi',
    name: 'Xiaoxi',
    component: () => import( '../components/Xiaoxi.vue')
  },  
  {
    path: '/fujing',
    component: () => import('../views/Fujing.vue')
  },
  {
    path: '/xiangqing/:kid',
    component: () => import('../views/Xiangqing.vue'),
    props:true
  },
  {
    path: '/huxing',
    component: () => import('../views/Huxing.vue')
  },
  {
    path: '/huxiang/:eid',
    component: () => import( '../views/Huxiang.vue')
  },
  {
    path: '/tab',
    name: 'Tab',
    component: () => import( '../components/testing/Tab.vue')
  },
  {
    path: '/quanbu',
    name: 'Quanbu',
    component: () => import('../views/Quanbu.vue')
  },
  {
    path: '/play',
    name: 'Play',
    component: () => import('../views/Play.vue')
  }
]
const router = new VueRouter({
  routes
})
export default router
